/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 入库Entity
 * @author 入库
 * @version 2019-12-21
 */
public class InOrderDetail extends DataEntity<InOrderDetail> {
	
	private static final long serialVersionUID = 1L;
	private InOrder order;		// 入库单id 父类
	private Woods woods;		// 物料id
	private WarehouseLoc cid;		// 仓库id
	private String type;		// 货物种类
	private String name;		// 物料名称
	private String plannumber;		// 计划数量
	private String status;		// 0未审核1通过2不通过
	private int factNumber;		// 实际数量
	
	public InOrderDetail() {
		super();
	}

	public InOrderDetail(String id){
		super(id);
	}

	public InOrderDetail(InOrder order){
		this.order = order;
	}

	@Length(min=0, max=32, message="入库单id长度必须介于 0 和 32 之间")
	public InOrder getOrder() {
		return order;
	}

	public void setOrder(InOrder order) {
		this.order = order;
	}
	
	public Woods getWoods() {
		return woods;
	}

	public void setWoods(Woods woods) {
		this.woods = woods;
	}
	
	public WarehouseLoc getCid() {
		return cid;
	}

	public void setCid(WarehouseLoc cid) {
		this.cid = cid;
	}
	
	@Length(min=0, max=255, message="货物种类长度必须介于 0 和 255 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=100, message="物料名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=11, message="计划数量长度必须介于 0 和 11 之间")
	public String getPlannumber() {
		return plannumber;
	}

	public void setPlannumber(String plannumber) {
		this.plannumber = plannumber;
	}
	
	@Length(min=0, max=255, message="0未审核1通过2不通过长度必须介于 0 和 255 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public int getFactNumber() {
		return factNumber;
	}

	public void setFactNumber(int factNumber) {
		this.factNumber = factNumber;
	}
	
}